package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.Grade;
import com.project.entity.Role;
import com.project.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.lang.reflect.InaccessibleObjectException;
import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lovo
 * @since 2023-07-21
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    public void insertRoleGrades(@Param("roleId") Integer roleId,@Param("grades") List<Integer> grades);

    public void deleteGrades(Integer roleId);

    public Role selectRole(Integer roleId);
}
